﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmpItemChangeBatch.aspx.cs"
    Inherits="UI.ModSalary.EmpItemChangeBatch" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>批量更改员工某个工资项</title>
    <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="pagetop" class="pagetop">
        <div class="pagetopleft">
            批量更改工资项</div>
    </div>
    <div>
        &nbsp; &nbsp; &nbsp; 工资帐套
        <asp:DropDownList ID="ddlSetsID" runat="server" CssClass="InputCss" AutoPostBack="True"
            OnSelectedIndexChanged="ddlSetsID_SelectedIndexChanged">
        </asp:DropDownList>
        工资项<asp:DropDownList ID="ddlItem" runat="server">
        </asp:DropDownList>
        月份<asp:DropDownList ID="ddlMonth" runat="server">
        </asp:DropDownList>
        <asp:Button ID="btnSearch" runat="server" Text="查询" CssClass="ButtonCss" TabIndex="0"
            OnClick="btnSearch_Click" />
        &nbsp;
    </div>
    <asp:GridView ID="gvList" runat="server" Width="99%" AutoGenerateColumns="False"
         GridLines="Horizontal" CssClass="td" ShowFooter="True">
        <Columns>
            <asp:TemplateField HeaderText="员工编号"  ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <asp:Label ID="lbEmpCode" runat="server" Text='<%# Eval("EmpCode")%>'></asp:Label>                   
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="员工姓名"  ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                 <asp:Label ID="lbEmpName" runat="server" Text='<%# Eval("EmpName")%>'></asp:Label>                        
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
            <asp:BoundField DataField="DeptName" HeaderText="部门">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="DutyName" HeaderText="职务">
                <ItemStyle Width="80px" />
            </asp:BoundField>
              <asp:TemplateField HeaderText="更改类型"  ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                 <asp:Label ID="lbTypeName" runat="server" Text='<%# Eval("TypeName")%>'></asp:Label>                        
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
            <asp:BoundField DataField="TheTime" HeaderText="生效时间"  DataFormatString="{0:d}">
                <ItemStyle Width="80px" />
            </asp:BoundField>

             <asp:TemplateField HeaderText="原金额"  ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                   <asp:Label ID="lbWageNum" runat="server" Text='<%# Eval("WageNum")%>'></asp:Label>                   
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="新金额">
                <ItemTemplate>
                    <asp:TextBox ID="txtNewWageNum" runat="server" size="12" MaxLength="8" class="InputLineCss" onkeydown="if(event.keyCode==13)event.keyCode=9" 
                        Text='<%# Eval("WageNum")%>'></asp:TextBox>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <AlternatingRowStyle BackColor="#F7F7F7" />
    </asp:GridView>
    <div>
        &nbsp; &nbsp; &nbsp; &nbsp;
        <asp:Button ID="btnModi" runat="server" Text="更改工资项"  OnClientClick="return confirm('看清楚你要修改的工资项了吗?\n');"  CssClass="ButtonCss" 
            TabIndex="0" onclick="btnModi_Click" />
    </div>
    </form>
</body>
</html>
